home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1995 October
/
Amiga-CD 1995 #10.iso
/
kommunikation
/
ncomm3.0
/
scripts
/
couchrx.ncomm
< prev
next >
Wrap
Text File
|
1993-05-24
|
678b
|
43 lines
/* ARexx script that does "WHEN" type checking via lastpos and logs you into a BBS */
username = "Torkel Lodberg\n"
password = "\p\n"
options results
address 'ncomm'
clearbuffer
inactivity 0
usersent = FALSE
passsent = FALSE
do forever
wait
if RC == 20 then exit
name = lastpos('FIRST name',result)
pass = lastpos('(dots will echo):',result)
getout = lastpos('Main Command',result)
if name ~= 0 & usersent == FALSE then
do
send username
usersent = TRUE
end
if pass ~= 0 & passsent == FALSE then
do
send password
passsent = TRUE
end
if getout ~= 0 then
do
simplereq 'Entered Main Menu!'
exit
end
end